package com.fenqing.utils;

import cn.hutool.json.JSONUtil;

/**
 * 字符串转双重数组
 * @author fenqing
 */
public class StringToIntTwoArrayEncoder implements Encoder<String, int[][]> {

    public StringToIntTwoArrayEncoder() {
    }

    @Override
    public int[][] encoder(String input) {
        return (int[][]) JSONUtil.parseArray(input).toArray(int[][].class);
    }
}